package com.ymatou.iapi.godmch.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.godmch.parameter.onDistributorCreateSuccessBean;
import com.ymatou.iapi.godmch.service.onDistributorCreateSuccessCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
/**
*分销员创建成功回调接口（为分销员创建买家端邀请码）
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_onDistributorCreateSuccess{
	private static onDistributorCreateSuccessBean bean;
	private static onDistributorCreateSuccessCall call;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("分销员创建成功回调接口（为分销员创建买家端邀请码）");
	}

	@Before
	public void caseUp() {
		bean=new onDistributorCreateSuccessBean();
		call=new onDistributorCreateSuccessCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(call.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_onDistributorCreateSuccess_001() {
		Logger.start(true,"分销员创建成功回调接口（为分销员创建买家端邀请码）");
		try {
		
			bean.setDistributorId(501336226);
			call.setData(bean);
			call.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}